package com.niren.relay.redis;

import redis.clients.jedis.Jedis;

import java.util.HashSet;

public class RedisHash implements RedisInterface{
    Jedis jedis = null;//new Jedis("localhost");

    public RedisHash(String hostOrIp) {
        jedis = new Jedis(hostOrIp);
        jedis.select(2);
    }

    @Override
    public boolean setValue(String key, String value) {
        return true;
    }

    @Override
    public String getValue(String key) {
        return null;
    }

    @Override
    public boolean delValue(String key) {
        return false;
    }

    @Override
    public HashSet<String> getKeys(String rule) {
        return null;
    }
}
